package com.demo;

import io.jsonwebtoken.SignatureAlgorithm;
import io.jsonwebtoken.security.Keys;
import org.springframework.security.access.AccessDecisionManager;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import javax.crypto.SecretKey;
import java.io.Serializable;
import java.util.*;
import java.util.stream.Collectors;

public class demo1 {
    public static void main(String[] args) {
//       SecretKey k1 = Keys.secretKeyFor(SignatureAlgorithm.HS512);
//        System.out.println(Base64.getEncoder().encodeToString(k1.getEncoded()));
//        SecretKey k2 = Keys.secretKeyFor(SignatureAlgorithm.HS512);
//        System.out.println(Base64.getEncoder().encodeToString(k2.getEncoded()));
    }

    public static void run1(){
        throw new RuntimeException("111");
    }
}



